package com.tzstcl.sys.user.model;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.tzstcl.base.model.BaseModel;
import com.tzstcl.commons.utils.LongJsonDeserializer;
import com.tzstcl.commons.utils.LongJsonSerializer;

import java.util.Date;
import java.io.Serializable;

/**
 * 公司：天筑科技股份有限公司
 * 作者：zgq
 * 日期：2019年05月09日
 * 说明：角色权限表实体类
 */
public class SysRolePermission extends BaseModel<SysRolePermission> implements Serializable {

	private static final long serialVersionUID = 1L;
    /**
     *角色id
     */
    @JsonSerialize(using = LongJsonSerializer.class)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    private Long roleId;
    /**
     *权限id
     */
    @JsonSerialize(using = LongJsonSerializer.class)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    private Long permissionId;
    /**
     *权限字符串
     */
    private String permission;

    public void setRoleId(Long roleId){
        this.roleId = roleId;
    }

    public Long getRoleId(){
        return this.roleId;
    }

    public void setPermissionId(Long permissionId){
        this.permissionId = permissionId;
    }

    public Long getPermissionId(){
        return this.permissionId;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }
}